package com.campus.service;

import com.campus.model.Permission;
import com.campus.model.Role;
import com.campus.model.User;

import java.util.List;

/**
 * @author HLQ
 * @date 2024/11/18 22:26
 */
public interface UserService {
    public User login(String username, String password);
    public int addUser(User user);
    public User queryUserById(int id);
    public User queryUserByName(String name);
    public int addUserRole(int userId, int roleId);
    public int addRole(Role role);
    public int addPermission(Permission permission);
    public int addGroup(String groupName,int classId);
}
